package com.yasha.ulti;

public class Const {
	public static String hostAddress = "http://tiepsucnganhmay.net/mobile/";

	public static String addUserToServer = hostAddress + "api?action=register";
	// value &userName=admin&userPhone=1234;
	public static String getNewsByTopicAndCity = hostAddress
			+ "api?action=fetchNewsByCityAndTopic";
	// value &city=hcm&topic=abc
	// {"id":"6","userCode":"1","lat":"0.12","lng":"0.34","topic":"","closeValid":"0","warningCount":"0","newsTitle":"title 2","newsContent":"news content","updateDate":"2014-03-21 12:00:00","validDate":"2014-03-21 12:00:00","imgFolderLink":"folder","city":"hcm"}
	
	public static String getNewsByTopic = hostAddress
			+ "api?action=fetchNewsByTopic";
	
	public static String getNewsByCity = hostAddress
			+ "api?action=fetchNewsByCity";
	//http://tiepsucnganhmay.net/mobile/api?action=fetchNewsByTopic&topic=abc
	//http://tiepsucnganhmay.net/mobile/api?action=fetchNewsByTitle&title=Title%201
	//http://tiepsucnganhmay.net/mobile/api?action=closeNews&userName=admin&newsTitle=title%201&close=true
	//http://tiepsucnganhmay.net/mobile/api?action=reportNews&userName=admin&newsTitle=title%201&warring=true
	//http://tiepsucnganhmay.net/mobile/api?action=fetchNewsInArea&token=123skasf&lat=0.12&lng=0.34&radius=500

	//http://tiepsucnganhmay.net/mobile/api?action=fetchNewsByCity&city=hcm

	public static String AddNewsToServer = hostAddress + "api?action=postNews";
	// value &userName=admin&lat=0.12&lng=0.34&city=hcm&newsTitle=title%201
	// value
	// &newsContent=news%20content&updateDate=2014-03-21%2012:00:00&validDate=2014-03-21%2012:00:00
	// value &imgFolderLink=folder&userfile=(file)&topic="abc"
}
